package demo05;

public class Demo01Student {
    public static void main(String[] args) {
        Student stu1 = new Student();
        stu1.setName("toastie");
        stu1.setAge(18);
        System.out.println("姓名：" + stu1.getName() + "，年龄：" + stu1.getAge()); // 姓名：toastie，年龄：18
        System.out.println("======================================");

        Student stu2 = new Student("粹花", 1);
        System.out.println("姓名：" + stu2.getName() + "，年龄：" + stu2.getAge()); // 姓名：粹花，年龄：1
        stu2.setAge(8);
        System.out.println("姓名：" + stu2.getName() + "，年龄：" + stu2.getAge()); // 姓名：粹花，年龄：8
    }
}
